<script type="text/template" id="admin-ctn-tpl">
    <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/admin">旅游WIFI综合平台</a>
        </div>
        <!-- /.navbar-header -->
    </nav>
    <div class="admin-nav-left-ctn"></div>
    <div class="admin-content-ctn"></div>
</script>

<script type="text/template" id="admin-ctn-nav-left">
    <div class="navbar-default sidebar" role="navigation">
        <div class="sidebar-nav navbar-collapse">
            <ul class="nav in" id="side-menu">
                <li>
                    <a href="#query-batch"><span><i class="fa fa-files-o fa-fw"></i> 批量查询</span></a>
                </li>
                <li>
                    <a href="#query-single"><i class="fa fa-file-o fa-fw"></i> 单条查询</a>
                </li>
                <li>
                    <a href="#manager"><i class="fa fa-credit-card fa-fw"></i> 卡号管理</a>
                </li>
                <li>
                    <a href="#order-manager"><i class="fa fa-rmb fa-fw"></i> 订单管理</a>
                </li>
                <li>
                    <a href="#package-manager"><i class="fa fa-gear fa-fw"></i> 套餐管理</a>
                </li>
            </ul>
        </div>
        <!-- /.sidebar-collapse -->
    </div>
</script>

<script type="text/template" id="admin-ctn-batch-tpl">
    <div class="row">
        <div class="col-lg-12">
            <p class="page-title">批量查询号码流量和充值记录</p>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <div class="row panel-body">
        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    批量查询流量剩余
                </div>
                <div class="panel-body">
                    <form action="/admin/flowset/batch" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>请上传要查询的电话号码</label>
                            <input type="file" name="queryMobiles">
                        </div>
                        <button type="submit" class="btn btn-default">提交查询</button>
                    </form>
                </div>
            </div>
        </div>

        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    批量查询充值记录
                </div>
                <div class="panel-body">
                    <form action="/admin/chargeInfo/batch" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>年</label>
                            <select class="form-control" name="year">
                                <option>2016</option>
                                <option>2015</option>
                                <option>2014</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>月</label>
                            <select class="form-control" name="month">
                                <option>1</option>
                                <option>2</option>
                                <option>3</option>
                                <option>4</option>
                                <option selected="selected">5</option>
                                <option>6</option>
                                <option>7</option>
                                <option>8</option>
                                <option>9</option>
                                <option>10</option>
                                <option>11</option>
                                <option>12</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label>请上传要查询的电话号码</label>
                            <input type="file" name="queryMobiles">
                        </div>
                        <button type="submit" class="btn btn-default">提交查询</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="admin-ctn-manager-tpl">
    <div class="row">
        <div class="col-lg-12">
            <p class="page-title">号码管理</p>
        </div>
        <!--&lt;!&ndash; /.col-lg-12 &ndash;&gt;-->
    </div>
    <div class="row panel-body">

        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    导入新卡
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label>新卡需要生成一个面向客户的卡号和密码才可以在微信中查询和充值, 导入成功后返回包含新卡号和密码excel文件</label>
                        <label>查询月份:<input type="date" class="mobiles-init-date" name="openDate"/></label>
                        <input id="initMoblies" type="file" name="initMoblies">
                    </div>
                    <button type="submit" class="btn btn-default upload-init-mobiles">上传</button>
                </div>
            </div>
        </div>

        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    导入所有号码
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label>请上传所有号码,文件格式excel,只有一列电话号码,单次限量6万条</label>
                        <input id="addMobiles" type="file" name="addMobiles">
                    </div>
                    <button type="submit" class="btn btn-default upload-add-mobiles">上传</button>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="admin-package-manager-tpl">
    <div class="row">
        <div class="col-lg-12">
            <p class="page-title">套餐管理</p>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <div class="row panel-body">
        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    通用流量折扣设置
                </div>
                <div class="panel-body discount-ctn">

                </div>
            </div>
        </div>
        <div class="col-lg-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    流量卡套餐设置
                </div>
                <div class="panel-body">
                    <button type="submit" class="btn btn-primary"><i class="fa fa-plus"></i> 添加套餐规格</button>
                    <input type="number" class="form-control col-md-2">
                    <input type="checkbox">1G 20元
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="admin-setting-discount-tpl">
    <form>
        <%for(var sp in discount){%>
        <div class="form-group input-group">
            <span class="input-group-addon"><%=sp%></span>
            <input type="number" min="0" max="10" step="any" class="form-control form-inline discount-value" data-sp="<%=sp%>" value="<%=discount[sp]%>">
        </div>
        <%}%>
    </form>
    <button class="btn btn-default btn-discount-save">保存修改</button>
</script>

<script type="text/template" id="admin-ctn-none-tpl">
    <div class="row">
        <div class="col-lg-12">
            <p class="page-title">玩命开发中...</p>
        </div>
        <!-- /.col-lg-12 -->
    </div>
</script>

